from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework.views import APIView


# Create your views here.
def auth(request):
    return JsonResponse({'status': True,'message': 'success'})

@api_view(['GET'])
def login(request):
    return Response({'status': True,'message': 'success'})

class InfoView(APIView):
    def get(self,request):
        return Response({'status': True,'message': 'GET'})

    def post(self,request):
        return Response({'status': True,'message': 'POST'})

    def put(self,request):
        return Response({'status': True,'message': 'PUT'})

    def delete(self,request):
        return Response({'status': True,'message': 'DELETE'})
